//
//  SRMainView.h
//  SportRing
//
//  Created by mykoma on 14-4-3.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LGBaseView.h"
#import "SRSportView.h"
#import "SRSleepingView.h"

@class SRMainView;
@class SRSetTargetView;


@protocol SRMainViewDelegate <NSObject>

@optional

-(void)backToday:(SRMainView *)mainView;
-(void)settingTarget:(SRMainView *)mainView targetView:(SRSetTargetView *)targetView;
-(void)srMainSportDetail:(SRMainView *)mainView;
-(void)switchType:(MAIN_VIEW_TYPE)type;
-(void)updateData;


@end

@interface SRMainView : LGBaseView

@property (nonatomic, assign)IBOutlet id<SRMainViewDelegate> mainDelegate;

@property (nonatomic, assign)MAIN_VIEW_TYPE type;

- (void)setMainViewDataWithSRSportViewModel:(SRSportViewModel *)srSportViewModel withSRSleepingViewModel:(SRSleepingViewModel*)srSleepingViewModel type:(MAIN_VIEW_TYPE)type;

- (void)refreshData;

- (void)stopAnimating;

- (void)showBackTodayButton;

- (void)hideBackTodayButton;



@end
